package com.rimuru.test.service.impl;

import com.rimuru.test.dao.impl.UserDao;
import com.rimuru.test.service.IUserService;

public class UserService implements IUserService {

    private UserDao userDao;

    public UserService() {
        System.out.println("UserService  create ...");
    }

    @Override
    public void add() {
        System.out.println("UserService add ...");
        userDao.add();
    }

    public UserDao getUserDao() {
        return userDao;
    }

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }
}
